@using Rail.Net.Core.Model
@model RelationRu

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>RelationRu</legend>

    <div class="display-label">SequenceNumber</div>
    <div class="display-field">@Model.SequenceNumber</div>

    <div class="display-label">Distance</div>
    <div class="display-field">@Model.Distance</div>

    <div class="display-label">Serial</div>
    <div class="display-field">@Model.Serial</div>

    <div class="display-label">Relation</div>
    <div class="display-field">@(Model.Relation == null ? "None" : Model.Relation.RelationNumber.ToString())</div>

    <div class="display-label">Ru</div>
    <div class="display-field">@(Model.Ru == null ? "None" : Model.Ru.Code)</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>


